import request from '@/utils/request'
// import axios from 'axios'
import { apiVersion } from '@/config'
// import { getDeviceId } from '@/utils/tool'


// 获取详情
export function gpuModelDetail(data) {
    return request({
        url: `/admin/${apiVersion}/gpuModel/${data.id}`,
        method: 'get',
        data
    })
}
// 分页列表
export function getGpuModel(data) {
    return request({
        url: `/admin/${apiVersion}/gpuModel`,
        method: 'get',
        data
    })
}
// 删除
export function delGpuModel(data) {
    return request({
        url: `/admin/${apiVersion}/gpuModel/${data.id}`,
        method: 'delete',
        data
    })
}
// 创建
export function addGpuModel(data) {
    return request({
        url: `/admin/${apiVersion}/gpuModel`,
        method: 'post',
        data
    })
}
export function putGpuModel(data) {
    return request({
        url: `/admin/${apiVersion}/gpuModel`,
        method: 'put',
        data
    })
}

// 查询列表
export function getAllGpuModel(data) {
    return request({
        url: `/admin/${apiVersion}/gpuModel/all`,
        method: 'get',
        data
    })
}
